package com.core.zyyz.pcmc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.pcmc.mapper.PcmcDataColumnMapper;
import com.core.zyyz.pcmc.domain.PcmcDataColumn;
import com.core.zyyz.pcmc.service.PcmcDataColumnService;

/**
 * 数据列Service业务层处理
 *
 * @author LiuFushun
 * @date 2024-10-29
 */
@Service
public class PcmcDataColumnServiceImpl implements PcmcDataColumnService
{
    @Autowired
    private PcmcDataColumnMapper pcmcDataColumnMapper;

    /**
     * 查询数据列
     *
     * @param tableCode 数据列主键
     * @return 数据列
     */
    @Override
    public PcmcDataColumn selectPcmcDataColumnByTableCode(String tableCode)
    {
        return pcmcDataColumnMapper.selectPcmcDataColumnByTableCode(tableCode);
    }

    /**
     * 查询数据列列表
     *
     * @param pcmcDataColumn 数据列
     * @return 数据列
     */
    @Override
    public List<PcmcDataColumn> selectPcmcDataColumnList(PcmcDataColumn pcmcDataColumn)
    {
        return pcmcDataColumnMapper.selectPcmcDataColumnList(pcmcDataColumn);
    }

    /**
     * 新增数据列
     *
     * @param pcmcDataColumn 数据列
     * @return 结果
     */
    @Override
    public int insertPcmcDataColumn(PcmcDataColumn pcmcDataColumn)
    {
        return pcmcDataColumnMapper.insertPcmcDataColumn(pcmcDataColumn);
    }

    /**
     * 修改数据列
     *
     * @param pcmcDataColumn 数据列
     * @return 结果
     */
    @Override
    public int updatePcmcDataColumn(PcmcDataColumn pcmcDataColumn)
    {
        return pcmcDataColumnMapper.updatePcmcDataColumn(pcmcDataColumn);
    }

    /**
     * 批量删除数据列
     *
     * @param tableCodes 需要删除的数据列主键
     * @return 结果
     */
    @Override
    public int deletePcmcDataColumnByTableCodes(String[] tableCodes)
    {
        return pcmcDataColumnMapper.deletePcmcDataColumnByTableCodes(tableCodes);
    }

    /**
     * 删除数据列信息
     *
     * @param tableCode 数据列主键
     * @return 结果
     */
    @Override
    public int deletePcmcDataColumnByTableCode(String tableCode)
    {
        return pcmcDataColumnMapper.deletePcmcDataColumnByTableCode(tableCode);
    }
}
